import { BaseManager } from './BaseManager';
import Counter from './Counter';

class CounterManager extends BaseManager {
    constructor(){
        super();
        this.dependencies = [];
    }

    // 让管理器名称与UserManager依赖保持一致
    getName(): string {
        return 'Counter';
    }

    async init(): Promise<void> {
        await Counter.init();
        this['markAsInitialized']();
    }

    async save(): Promise<void> {
        await Counter.save();
    }
}

export default new CounterManager();


